package cn.timeapi.Applet.Mall.CatSquare.service;

import cn.timeapi.Applet.Mall.CatSquare.common.ServerResponse;
import cn.timeapi.Applet.Mall.CatSquare.entity.ManagementAccount;

/**
 * 描述:用户服务
 * @author Vincent Vic
 * create 2020-02-14 17:26
 */


public interface IManagementAccountService {

    //登录接口
    ServerResponse<ManagementAccount> login(String phone, String password);
    //注册接口
    public ServerResponse<String> register(ManagementAccount managementAccount);
    //校验数据（用户/邮箱）
    public ServerResponse<String> checkValid(String phone);
    //重置密码
    public ServerResponse<String> restPasword(String phone,String passwordOldByMd5,String passwordNew);
    //更新用户账号信息
    public ServerResponse<ManagementAccount> updataAccount(String oldPhone,String newPhone);

    public ServerResponse checkAdminRole(ManagementAccount managementAccount);
}